package com.example.cglib.service;

/**
 * ClassName:UserService
 * Package:com.example.cglib.service
 * Description:
 *
 * @Author:ZhangXin
 * @Create:2023/5/10-16:44
 * @Version:v1.0
 */
public class UserService {

    //目标方法
    public boolean login(String username, String password) {
        System.out.println("系统正在验证身份");
        if ("admin".equals(username) && "123".equals(password)) {
            return true;
        }
        return false;
    }

    //目标方法
    public void logout() {
        System.out.println("系统正在退出");
    }
}
